-
-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: Sync hosts dir with proper permissions #460
Conversation
21417f0
to
810e080
Compare
This PR simplifies the command at the end of - ansible-playbook ${ANSIBLE_PATH}/dev.yml -i ${TEMP_HOSTS}/development --sudo --user=vagrant --connection=local
+ ansible-playbook dev.yml
|
5239366
to
ecc0bda
Compare
This PR originally synced the |
@@ -51,6 +51,7 @@ Vagrant.configure('2') do |config| | |||
end | |||
|
|||
if Vagrant::Util::Platform.windows? | |||
config.vm.synced_folder '.', '/vagrant', mount_options: ['dmode=776', 'fmode=664'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this mean that deploy.sh
won't execute now?
@QWp6t correctly pointed out that |
Just tested this. It works. 👍 |
Windows: Sync hosts dir with proper permissions
To run Ansible commands directly, Windows users have had to adjust permissions for files in the synced
hosts
directory. This PR implements @QWp6t's approach of syncinghosts
with the proper permissions.I bumped the Vagrant requirement to 1.8 to take advantage of the shell provisioner's new
env
option which enables us to pass theANSIBLE_PATH_ON_VM
towindows.sh
.Could a Windows user test and confirm that this works?